//
//  MyDrawcell.m
//  jingdongfang
//
//  Created by MTiMac02 on 2018/5/7.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import "MyDrawcell.h"
#import "IGDrawModel.h"

@implementation MyDrawcell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)layoutSubviews{
    IGDrawModel *info=self.data;
    self.name.text=info.title?info.title:@"我的画单";
    if (!_Like) {
          [self.drawImageView sd_setImageWithURL:[NSURL URLWithString:info.image] placeholderImage:[UIImage imageNamed:@"mylike"]];
    }
    if (_Like) {
         [self.drawImageView sd_setImageWithURL:[NSURL URLWithString:info.image] placeholderImage:[UIImage imageNamed:@"like3"]];
    }
    self.number.text=[NSString stringWithFormat:@"%@幅",info.productNum?info.productNum:@"0"] ;
    if ([info.secrecy integerValue]==1) {
        self.privace.hidden=YES;
    }else if ([info.secrecy integerValue]==2){
        self.privace.hidden=NO;
        self.privace.text=info.secrecy;
    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
